package com.leoman.entity;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;

/**
 * 省份
 */
@Entity
@Table(name = "t_province")
public class Province {

    @Id
    private Integer id;

    @Column(name = "name")
    private String name;

    @Transient
    private List<City> cityList = new ArrayList<>();

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<City> getCityList() {
        return cityList;
    }

    public void setCityList(List<City> cityList) {
        this.cityList = cityList;
    }
}
